@import '@/assets/styles/hairline.scss';

.root {
  :global {
    .chat-list {
      height: 100%;
      overflow-y: scroll;
      padding: 15px 16px;
    }

    .chat-item {
      display: flex;
      margin-bottom: 12px;

      img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
      }

      .icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
      }

      .message {
        max-width: 254px;
        padding: 12px 8px;
        line-height: 1.4;
        border-radius: 5px;
        font-size: 14px;
        background-color: #f7f8fa;
      }
    }

    .user {
      flex-direction: row-reverse;

      .icon,
      img {
        margin-right: 0;
        margin-left: 8px;
      }
    }

    .footer {
      height: 50px;
      .input-footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 50px;
        padding: 7px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: #fff;

        .input {
          height: 36px;
          min-height: 0;
          padding-left: 30px;
          border-radius: 18px;
          background-color: #f5f5f5;
          font-size: 14px;
          width: 80vw;
        }
        .no-border {
          @include hairline-remove(bottom);
        }

        .icon {
          position: absolute;
          top: 50%;
          margin-left: 10px;
          margin-top: -8px;
          font-size: 16px;
          z-index: 1;
        }
        .send {
          font-size: 14px;
          color: #666;
        }
      }
    }
  }
}
